package com.neusoft.yiyang.diet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.yiyang.common.entity.diet.FoodTag;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FoodTagMapper extends BaseMapper<FoodTag> {

    // Get food tags by foodId
    List<FoodTag> selectByFoodId(Integer foodId);

    // Get food tags by tagId
    List<FoodTag> selectByTagId(Integer tagId);

    // Delete food tag by foodId and tagId
    void deleteByFoodIdAndTagId(Integer foodId, Integer tagId);


}
